package com.xjoyt.pay.merchant.register.interfaces;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.xjoyt.pay.dto.ExecuteResult;
import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.merchant.register.params.MerchantRatePageParam;
import com.xjoyt.pay.merchant.register.po.Merchant;
import com.xjoyt.pay.merchant.register.po.MerchantRate;

public interface MerchantRateContract {

	@RequestMapping(value = "saveRate", method = RequestMethod.POST)
	ExecuteResult<?> saveRate(@RequestBody com.xjoyt.pay.master.vo.MerchantRateMap param);

	@RequestMapping(value = "check/{id}/{enabled}")
	ExecuteResult<Merchant> check(@PathVariable("id") String id, @PathVariable("enabled") Boolean enabled);

	@RequestMapping(value = "loadPage", method = RequestMethod.POST)
	PageResult<com.xjoyt.pay.merchant.register.vo.MerchantRate> loadPage(
			@RequestBody PageParam<MerchantRatePageParam> param);

	@RequestMapping(value = "save", method = RequestMethod.POST)
	ExecuteResult<MerchantRate> save(@RequestBody com.xjoyt.pay.master.po.MerchantRate param);
}
